#!/bin/bash

flg=`ps -ef|grep rosbag|grep python3|wc -l` 
if [ $flg -ne "0" ];
 pid=`ps -ef|grep rosbag|grep python3|awk '{print $2}'`
 then kill -15 $pid 
fi
